package com.ylbh.modules.eggupgrade.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ylbh.modules.eggupgrade.entity.ShoppingEggUpgradeSetting;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 彩蛋邀请升级配置信息
 *
 * @author czx
 * @date 2020-01-07 17:53:13
 */
@Mapper
@Repository
public interface ShoppingEggUpgradeSettingMapper extends BaseMapper<ShoppingEggUpgradeSetting> {

    /**
     * 彩蛋邀请升级配置信息列表
     * @param keywords
     * @param page
     * @return
     */
    List<ShoppingEggUpgradeSetting> selectEggUpgradeList(String keywords, Page<Integer> page);

    /**
     * 删除彩蛋邀请升级配置信息
     * @param ids
     */
    void updateEggUpgradeDeleteStatusByIds(@Param(value = "ids") List<String> ids);

    /**
     * 新增彩蛋邀请升级配置信息
     * @param shoppingEggUpgradeSetting
     */
    void insertEggUpgrade(ShoppingEggUpgradeSetting shoppingEggUpgradeSetting);
}
